<div class="bp-view-pics" id="box_pics">
    <div class="scroller">
        <?php if ($parlor -> bp_medal == 0):?>
<!--            <img src="/assets/frontend/img/share/nopass-banner.png" />-->
            <?php foreach($photos as $pic): ?>
                <img src="<?= $pic['photo_url'] ?>" />
            <?php endforeach ?>
        <?php else :?>
            <?php foreach($photos as $pic): ?>
                <img src="<?= $pic['photo_url'] ?>" />
            <?php endforeach ?>
        <?php endif;?>
        
        

    </div>
    <div class="box_indicator">
        <div class="indicator" id="box_pics_indicator">
            <div class="box-dotty"><div class="dotty"></div></div>
        </div>
    </div>
</div>

<div class="bp-view-info">
    <?php if ($parlor -> bp_medal == 0):?>
        <div class="listItem shopName">
                <div class="price pull-right"><em>￥<?=$parlor -> low_price ? $parlor -> low_price : '0.00'?></em><span>元起</span></div>
                <span><?=$parlor -> name ?>美容院</span>
        </div>
    <?php else:?>
        <div class="listItem shopName">
<!--            <div class="tag">
                <img src="/assets/frontend/img/share/icon-deepShop-tag.png" alt=""/>
            </div>-->
            <div class="price pull-right"><em>￥<?=$parlor -> low_price ? $parlor -> low_price : '0.00'?></em><span>元起</span></div>
            <span class="name"><?=$parlor -> name ?>美容院</span>

        </div>
    <?php endif; ?>
    <div class="listItem">
        <span class="icon"><img src="/assets/frontend/img/share/icon-map.png" /></span><?= $parlor -> bp_address ?></div>

<!--    <div class="tel"><span class="icon"><img src="/assets/frontend/img/share/icon-tel.png" /></span></div>-->

    <div class="listItem">
        <span class="icon"><img src="/assets/frontend/img/share/icon-time.png" />
        </span>营业时间&nbsp;&nbsp;<?=$parlor -> open_time ?>-<?=$parlor -> close_time ?>
    </div>
    <div class="icons">
    <?php if ($parlor -> bp_medal == 0):?>
        <div>
            <img src="/assets/frontend/img/share/icon-start.png" alt=""/>
            <p>开业<?=$parlor -> open_year ?>年</p>
        </div>
        <div>
            <img src="/assets/frontend/img/share/icon-area.png" alt=""/>
            <p>面积><?=$parlor -> shop_area ?></p>
        </div>
        <div>
            <img src="/assets/frontend/img/share/icon-demo.png" alt=""/>
            <p>项目<?=$parlor -> service_num ?>项</p>
        </div>
    <?php else :?>
        <div>
            <img src="/assets/frontend/img/share/icon-start(1).png" alt=""/>
            <p class="light">开业<?=$parlor -> open_year ?>年</p>
        </div>
        <div>
            <img src="/assets/frontend/img/share/icon-area(1).png" alt=""/>
            <p class="light">面积><?=$parlor -> shop_area ?></p>
        </div>
        <div>
            <img src="/assets/frontend/img/share/icon-demo(1).png" alt=""/>
            <p class="light">项目<?=$parlor -> service_num ?>项</p>
        </div>    
    <?php endif;?>    
    </div>
<!--    <?php if ($parlor -> bp_medal == 0):?>
    <a href="../bpmedal/noverify"><div class="isDeepShop listItem">该店等待进行深度验店<i class="pull-right arrow-right"><img src="/assets/frontend/img/share/icon-arrow-right.png" alt=""></i></div></a>
    <div class="deShopIntro">该店尚未进行深度验店，展示信息暂供参考</div>
    <?php else:?>
        <a href="../bpmedal/verify"><div class="isDeepShop listItem ok"><span><img src="/assets/frontend/img/share/icon-deepShop.png" alt=""/></span>该店已通过深度验店<i class="pull-right"><img src="/assets/frontend/img/share/icon-arrow-right.png" alt=""></i></div></a>
    <?php endif;?>-->
    <?php if ($parlor -> bp_medal == 1 && !empty($service)):?>
    <div class="listItem mt20">推荐服务</div>
    <div class="recommend">
        <div class="recommend-wrap">
        <?php foreach ($service as $ser):?>
            <div class="recommend-demo">
                <img src="<?=$ser['service_cover'] ?>" alt=""/>
                <p class="recommend-demo-price">￥<?=$ser['service_price'] ?>/次</p>
                <p class="recommend-demo-intro"><?=$ser['service_name'] ?></p>
            </div>
        <?php endforeach;?>
            <div class="clear"></div>
        </div>

    </div>
    <?php endif;?>

    <div class="listItem mt20">服务范畴</div>
    <div class="services">
        <?php if(count($tag) > 0): ?>
            <?php foreach ($tag as $t): ?>
                <span><?=$t['tag_title'] ?></span>
            <?php endforeach;?>
        <?php endif; ?>
        <div class="clear"></div>
    </div>

<!--    <a href="/frontend/Bpmedal/shopintro">-->
        <div class="listItem mt20">商家介绍
            <!--<div class="pull-right"><span>查看详情</span><i class="arrow-right"><img src="/assets/frontend/img/share/icon-arrow-right.png" alt=""></i></div>-->
        </div>
<!--    </a>-->
    <div class="intro">
        <p>竭诚为您提供各类美容项目的专业服务，期待您的光临。</p>
        <!--<p><?= $parlor -> bp_intro ?></p>-->
    </div>
    <?php if(!empty($parlor -> facilities)):?>
    <div class="listItem mt20">设备设施</div>
    <div class="icons">
        <?php if (in_array('wifi', $parlor -> facilities)):?>
            <div>
                <img src="/assets/frontend/img/share/icon-wifi(1).png" alt=""/>
                 <p class="light">WIFI</p>
            </div>
        <?php else :?>
            <div>
                <img src="/assets/frontend/img/share/icon-wifi.png" alt=""/>
                 <p>WIFI</p>
            </div>
        <?php endif;?>
        
        <?php if (in_array('停车', $parlor -> facilities)):?>
            <div>
                <img src="/assets/frontend/img/share/icon-stopCar(1).png" alt=""/>
                <p class="light">停车</p>
            </div>
        <?php else :?>
            <div>
                <img src="/assets/frontend/img/share/icon-stopCar.png" alt=""/>
                <p>停车</p>
            </div>
        <?php endif;?>
        
        <?php if (in_array('洗浴', $parlor -> facilities)):?>
            <div>
                <img src="/assets/frontend/img/share/icon-bath(1).png" alt=""/>
                <p class="light">洗浴</p>
            </div>
        <?php else :?>
            <div>
                <img src="/assets/frontend/img/share/icon-bath.png" alt=""/>
                <p>洗浴</p>
            </div>
        <?php endif;?>
    
    </div>
    <?php foreach ($parlor -> facilities as $fac):?>
    <?php if ($fac != 'wifi' && $fac != '停车' && $fac != '洗浴'):?>  
    <div class="equipments listItem">
        <span class="icon"><img src="/assets/frontend/img/share/icon-check.png" alt=""/></span>
        <?=$fac ?>
    </div>
    <?php endif;?>
    <?php endforeach;?>
<?php else :?>
    <div class="listItem mt20">设备设施</div>
    <div class="icons">
        <div>
            <img src="/assets/frontend/img/share/icon-wifi.png" alt=""/>
            <p>WIFI</p>
        </div>
        <div>
            <img src="/assets/frontend/img/share/icon-stopCar.png" alt=""/>
            <p>停车</p>
        </div>
        <div>
            <img src="/assets/frontend/img/share/icon-bath.png" alt=""/>
            <p>洗浴</p>
        </div>
    </div>
<?php endif;?>
<!-- 美粒互动  -->
<?php if (!empty($interactList)):?>
    <div class="listItem mt20">美粒互动 </div>
    <div class="meelierHd">
        <div class="meelierHd-top">
            <div class="personPic"><img src="<?=$interactUser->user_cover ?>" alt=""/></div>
            <div class="name"><?=$interactUser->user_nickname ?></div>
            <div class="motto"><?=$interactUser->persional_sign ?></div>
        </div>
        <?php foreach ($interactList as $inte):?>
        <div class="meelierHd-con clearfix">
            <div class="meelierHd-con-text clearfix">
                <?php if (!empty($inte['pics'])):?>
                <div class="meelierHd-con-Pic pull-right">
                    <img src="<?=$inte['pics'] ?>" alt=""/>
                    <span><?=$inte['count'] ?></span>
                </div>
                <?php endif;?>
                <?=$inte['content'] ?>
            </div>

            <div class="time">
                <span><?=date("n",strtotime($inte['addtime'])) ?>月<?=date("d",strtotime($inte['addtime'])) ?>日</span><i><?=date("H:i",strtotime($inte['addtime'])) ?></i>
            </div>

        </div>
        <?php endforeach;?>
    </div>
    <?php endif;?>
    <?php if (!empty($comment)):?>
    <div class="listItem mt20">用户评论</div>
    <?php foreach ($comment as $com):?>
    <div class="user-detail">

        <div class="user-intro">
            <p><img src="<?=$com['user_cover'] ?>" alt="用户头像"/></p>
            <div class="user-intro-name"><?=$com['user_nickname'] ?></div>
            <div class="user-intro-time"><?=$com['comment_addtime'] ?></div>
        </div>
        <div class="user-context">
           <?=$com['comment_info'] ?>
           <?php if (!empty($com['comment_photos'])):?>
            <figure class="mt20">
                <?php foreach ($com['comment_photos'] as $pic):?>
                <img src="<?=$pic ?>" alt=""/>
                <?php endforeach;?>
            </figure>
            <?php endif;?>
        </div>

    </div>
    <?php endforeach;?>
</div>
        <?php endif;?>

<!--
<div class="bp-view-services">
    <h1>服务项目</h1>
    <ul>
       
        <li>
            <div class="cover"><img src="@!200" /></div>
            <div class="info">
                <h3></h3>
                <p class="price"></p>
                <p class="desc"></p>
            </div>
        </li>
        
    </ul>
</div>-->
